home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
moonstonemadness.swf
/
scripts
/
__Packages
/
Library
/
BasicPopUp.as
next >
Wrap
Text File
|
2007-09-27
|
1KB
|
58 lines
class Library.BasicPopUp extends Library.State
{
static var NEED_UPDATE = 1;
function BasicPopUp(__mcRef)
{
super(__mcRef);
this.setState("Hidden");
}
function doHide()
{
this.setState("Hidden");
}
function doClose()
{
if(this.__get__CurrentState() == "Idle")
{
this.setState("Out");
}
}
function doOpen()
{
this.setState("In");
}
function get Ref()
{
return this.mcRef.mcState.mcBox;
}
function set Listener(__o)
{
this.oListener = __o;
}
function doIn()
{
if(this.isStateComplete())
{
this.setState("Idle");
}
}
function doOut()
{
if(this.isStateComplete())
{
this.setState("Hidden");
}
}
function doLoadStateAction()
{
this.mcRef.mcState.btnBlock.onRelease = function()
{
};
this.mcRef.mcState.btnBlock.useHandCursor = false;
if(this.__get__CurrentState() != "Hidden")
{
this.oListener.onPopUpEvent(Library.BasicPopUp.NEED_UPDATE,this);
}
}
}